<h1>Commentss List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>User</th>
      <th>News</th>
      <th>Body</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($commentss as $comments): ?>
    <tr>
      <td><a href="<?php echo url_for('comments/edit?id='.$comments->getId()) ?>"><?php echo $comments->getId() ?></a></td>
      <td><?php echo $comments->getUserId() ?></td>
      <td><?php echo $comments->getNewsId() ?></td>
      <td><?php echo $comments->getBody() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('comments/new') ?>">New</a>
